Skip to content

[VL] Fixed iceberg table properties config logic#12221

Merged
zhouyuan merged 1 commit into
apache:mainfrom
infvg:sqlconffix
Jun 5, 2026
Merged

[VL] Fixed iceberg table properties config logic#12221
zhouyuan merged 1 commit into
apache:mainfrom
infvg:sqlconffix

Conversation

@infvg
Copy link
Copy Markdown
Contributor

@infvg infvg commented Jun 2, 2026

The previous logic overrode SQLConf property with TableProperty, while not setting any value when SQLConf not set. Now it will prioritize SQLConf, then TableProperty

@infvg infvg changed the title [VL] Fixed iceberg table properties config logic Fixed iceberg table properties config logic Jun 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Run Gluten Clickhouse CI on x86

@github-actions github-actions Bot added the VELOX label Jun 2, 2026
@zhouyuan zhouyuan changed the title Fixed iceberg table properties config logic [VL] Fixed iceberg table properties config logic Jun 2, 2026
@zhouyuan
Copy link
Copy Markdown
Member

zhouyuan commented Jun 2, 2026

This aligns the java iceberg behavior

@infvg infvg force-pushed the sqlconffix branch 2 times, most recently from 9119bc7 to e7fc635 Compare June 3, 2026 10:37
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Run Gluten Clickhouse CI on x86

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how Velox Iceberg native write derives and forwards write-related properties so that session-level Spark SQLConf settings take precedence, with Iceberg table properties used as a fallback when the session config is not explicitly set.

Changes:

  • Update Iceberg write exec helpers to source Parquet page size from table properties and target file size from Iceberg write conf.
  • Fix Velox Iceberg writer property propagation logic to only inject fallback values when the corresponding SQLConf key is not set.
  • Add a (currently disabled) regression test intended to validate write.target-file-size-bytes behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
gluten-iceberg/src/main/scala/org/apache/gluten/execution/IcebergWriteExec.scala Adjusts how Parquet page size and target file size values are sourced for native write configuration.
backends-velox/src-iceberg/main/scala/org/apache/gluten/execution/AbstractIcebergWriteExec.scala Changes property injection condition to respect explicitly set SQLConf values and only fall back otherwise.
backends-velox/src-iceberg/test/scala/org/apache/gluten/execution/enhanced/VeloxIcebergSuite.scala Adds a regression test intended to verify target file sizing behavior (currently structured as disabled).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +468 to +470
ignore("disabled test") {
test("iceberg native write respects target file size bytes") {
withTable("iceberg_small_target_tbl") {
@zhouyuan zhouyuan merged commit 9de3b50 into apache:main Jun 5, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants